/**
 * Description:
 * Class Name:SynchronizedDrawTest
 * Date:2022/5/6 15:28
 *
 * @author LTisme
 * @version JAVA17
 */
package 疯狂Java讲义.第16章_多线程._16_5_同步线程._16_5_2_同步代码块之解决银行取钱问题;

import 疯狂Java讲义.第16章_多线程._16_5_同步线程._16_5_1_线程安全问题之银行取钱问题.Account;

public class SynchronizedDrawTest {
    public static void main(String[] args) {
        Account account = new Account("1234567", 1000);
        new SynchronizedDrawThread("甲", account, 800).start();
        new SynchronizedDrawThread("乙", account, 800).start();
    }
}
